<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">企业微信应用名称</label>
                            <div>
                                <input type="text" class="form-control" name="name" placeholder="请输入企业微信应用名称">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">企业ID</label>
                            <div>
                                <input type="text" class="form-control" name="corpId" placeholder="请输入企业ID">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <label class="form-inline">应用ID</label>
                            <div>
                                <input type="text" class="form-control" name="agentId" placeholder="请输入应用ID">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 form-group">
                        <div class="col-sm-4">
                            <label class="form-inline">应用类型</label>
                            <div>
                                <select class="form-control" name="type">
                                    <option value="1">通讯录（成员，部门管理）</option>
                                    <option value="2">打卡</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <label class="form-inline">应用的凭证密钥</label>
                            <div>
                                <input type="text" class="form-control" name="corpSecret" placeholder="请输入应用的凭证密钥">
                            </div>
                        </div>
                    </div>
                </div>
                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../../../../js/business-manage/organization/ewx/edit.js"></script>
</body>
</html>
